package com.jsptags.navigation.pager;

import javax.servlet.jsp.tagext.TagData;

public final class JumpTagExtraInfo extends PageTagExtraInfo {

	public final boolean isValid(TagData tagdata) {
		if (!super.isValid(tagdata))
			return false;
		Object obj = tagdata.getAttribute("unless");
		if (obj != null && obj != TagData.REQUEST_TIME_VALUE
				&& (obj instanceof String)) {
			String s = (String) obj;
			return "indexed".equals(s) || "current".equals(s);
		} else {
			return true;
		}
	}
}
